package cn.qf.first.exceptions;

/**
 * @author Ran
 * @since JDK 1.8
 *
 *      自定义异常父类
 */
public class BaseException extends RuntimeException{
    private int errorCode;

    public BaseException() {
    }

    public BaseException(int errorCode,String msg) {
        super(msg);
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }
}
